* bidi.c (bidi_dump_cached_states): Use pD to print ptrdiff_t.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 12 Jul 2011 17:35:56 +0000 (10:35 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 12 Jul 2011 17:35:56 +0000 (10:35 -0700)
src/ChangeLog
src/bidi.c

index b5776fd473dbc8bb6f64f6feaf84f95de98bf23c..22170045cfbdebe2a5fb52b2335ccaf326784d57 100644 (file)
@@ -1,5 +1,7 @@
 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * bidi.c (bidi_dump_cached_states): Use pD to print ptrdiff_t.
+
        * xfaces.c (Fbitmap_spec_p): Fix integer overflow bug.
        Without this fix, (bitmap-spec-p '(34359738368 1 "x"))
        would wrongly return t on a 64-bit host.
index ecdcdd93d66060de6fefd5ba63d137bac6fea2e3..2662ee3d845c42789e798c4e5057852613d903e4 100644 (file)
@@ -1923,7 +1923,7 @@ bidi_dump_cached_states (void)
       fprintf (stderr, "The cache is empty.\n");
       return;
     }
-  fprintf (stderr, "Total of %d state%s in cache:\n",
+  fprintf (stderr, "Total of %"pD"d state%s in cache:\n",
           bidi_cache_idx, bidi_cache_idx == 1 ? "" : "s");
 
   for (i = bidi_cache[bidi_cache_idx - 1].charpos; i > 0; i /= 10)